package cn.yilongquan.mapper;

import cn.yilongquan.user.domain.LogEntity;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

@Repository
public interface LogMapper {

    @Insert("INSERT INTO tb_logs (user_id, user_name, create_time, class_name, method_name, method_params, return_value, cost_time, ip) " +
            "VALUES (#{userId}, #{userName}, #{createTime}, #{className}, #{methodName}, #{methodParams}, #{returnValue}, #{costTime}, #{ip})")
    void saveLog(LogEntity logEntity);
}